package com.hdsx.restful.lzzt.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hdsx.ao.base.BaseOpearte;
import com.hdsx.restful.lzzt.bean.Kyglss;
import com.hdsx.restful.lzzt.mapper.KyglssMapper;
import com.hdsx.restful.lzzt.service.KyglssService;
@Service
public class KyglssServiceImpl extends BaseOpearte<Kyglss> implements KyglssService {

    public KyglssServiceImpl() {
        super("GIS_KYGLSS");
    }

	@Resource(name="kyglssMapper")
	private KyglssMapper mapper;

	@Override
	public int queryCount(String xzqhbm, String name) {
		Map<String,Object> parameter=new HashMap<String,Object>();
		parameter.put("xzqhbm", xzqhbm);
		parameter.put("mc", name);
		return mapper.queryCount(parameter);
	}

	@Override
	public List<Kyglss> queryList(String xzqhbm, String name, int begin, int end) {
		Map<String,Object> parameter=new HashMap<String,Object>();
		parameter.put("xzqhbm", xzqhbm);
		parameter.put("mc", name);
		parameter.put("begin", begin);
		parameter.put("end", end);
		List<Kyglss> lists=mapper.queryList(parameter);
		return lists;
	}

	@Override
	public Kyglss selectOne(String id) {
		return mapper.selectOne(id);
	}
	@Override
	public List<String> selectName(String name){
		return mapper.selectName(name);
	}
}
